const {
    override,
    addLessLoader,
    addDecoratorsLegacy,
    addWebpackAlias
} = require("customize-cra");
const path = require("path");
let theme = require('./theme')
module.exports = override(
    addLessLoader({
        lessOptions: {
            javascriptEnabled: true,
            modifyVars:theme,
        },
    }),
    addDecoratorsLegacy(),
    addWebpackAlias({
        '@':path.resolve(__dirname,'src'),
        '@act':path.resolve(__dirname,'src/action'),
        '@api':path.resolve(__dirname,'src/api'),
        '@assets':path.resolve(__dirname,'src/assets'),
        '@comp':path.resolve(__dirname,'src/components'),
        '@utils':path.resolve(__dirname,'src/utils')
    })
)